
<html  xmlns:th="http://www.thymeleaf.org">

<head>
    <title>用户列表</title>
    <script th:inline="javascript"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript"  src="../../static/jquery.js"  ></script>

    <script type="text/javascript" src="../../static/pageCommon.js"    charset="utf-8"></script>
    <script type="text/javascript" src="../../static/PageUtils.js"    charset="utf-8"></script>
    <link type="text/css" rel="stylesheet" href="../../static/style/blue/pageCommon.css" />
    <script type="text/javascript">
    </script>  
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head"> 
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="../../static/style/images/title_arrow.gif"/> 用户管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table border="1" class="TableStyle">
       
        <!-- 表头-->
        <thead>
            <tr align=center valign=middle id=TableTitle>
                <td width="100">登录名</td>
                <td width="100">姓名</td>
                <td width="100">所属部门</td>
                <td width="200">岗位</td>
                <td>备注</td>
                <td>相关操作</td>
            </tr>
        </thead>
        
        <!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" >
        
   
            <tr class="TableDetail1 template" th:each="user:${listall} ">
                <td th:text="${user.loginname}">loginName</td>
                <td th:text="${user.username }">name</td>
                <td th:text="${user.department.dname }">departmentname</td>
                <td th:each="post:${user.posts}">
                	<span th:text="${post.pname }"></span>
                		
                </td>
                <td th:text="${user.udesc }">desc&nbsp;</td>
                <td>
                	<a th:href="@{'userAction_delete/'+${user.pid}}" onclick="return delConfirm()">删除</a>
                    <a  th:href="@{'userAction_editUI/'+${user.pid}}">修改</a>
					<a th:href="@{'userAction_initPassword/'+${user.pid}}" onclick="return window.confirm('您确定要初始化密码为1234吗？')">初始化密码</a>
                </td>
            </tr>
  
            
        </tbody>
    </table>
    
    <!-- 其他功能超链接 -->
    <div id="TableTail">
        <div id="TableTail_inside">
            <a href="userAction_addUI"><img src="../../static/style/images/createNew.png" /></a>
        </div>
    </div>
</div>

</body>
</html>
